package world.snowcrystal.model.dto.user;

import world.snowcrystal.common.PageRequest;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import world.snowcrystal.model.dto.search.SearchSupport;

/**
 * 用户查询请求
 *
 *  tianqing
 *
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserQueryRequest extends PageRequest implements Serializable, SearchSupport {
    /**
     * id
     */
    private Long id;

    /**
     * 开放平台id
     */
    private String unionId;

    /**
     * 公众号openId
     */
    private String mpOpenId;

    /**
     * 用户昵称
     */
    private String userName;

    /**
     * 简介
     */
    private String userProfile;

    /**
     * 用户角色：user/admin/ban
     */
    private String userRole;

    private static final long serialVersionUID = 1L;

    @Override
    public String getSearchField() {
        return userName;
    }

    @Override
    public void setSearchField(String searchField) {
            this.userName = searchField;
    }
}